package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the IN_ERX_CHARGE database table.
 * 
 */
@Entity
@Table(name="IN_ERX_CHARGE")
@NamedQuery(name="InErxCharge.findAll", query="SELECT i FROM InErxCharge i")
public class InErxCharge implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="IN_MEDICAL_ERX_ID")
	private long inMedicalErxId;

	@Temporal(TemporalType.DATE)
	@Column(name="MAKE_MEDICAL_TIME")
	private Date makeMedicalTime;

	@Column(name="MEDICAL_TOTAL")
	private BigDecimal medicalTotal;

	/*//bi-directional many-to-one association to HospWorkInErx
	@OneToMany(mappedBy="inErxCharge")
	private List<HospWorkInErx> hospWorkInErxs;*/

	//bi-directional many-to-one association to HospWorkInErx
	@ManyToOne
	@JoinColumn(name="PRESCRIPTIONNUM_IN")
	private HospWorkInErx hospWorkInErx;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;
/*
	//bi-directional many-to-one association to InErxChargeDetail
	@OneToMany(mappedBy="inErxCharge")
	private List<InErxChargeDetail> inErxChargeDetails;*/

	public InErxCharge() {
	}

	public long getInMedicalErxId() {
		return this.inMedicalErxId;
	}

	public void setInMedicalErxId(long inMedicalErxId) {
		this.inMedicalErxId = inMedicalErxId;
	}

	public Date getMakeMedicalTime() {
		return this.makeMedicalTime;
	}

	public void setMakeMedicalTime(Date makeMedicalTime) {
		this.makeMedicalTime = makeMedicalTime;
	}

	public BigDecimal getMedicalTotal() {
		return this.medicalTotal;
	}

	public void setMedicalTotal(BigDecimal medicalTotal) {
		this.medicalTotal = medicalTotal;
	}

	/*public List<HospWorkInErx> getHospWorkInErxs() {
		return this.hospWorkInErxs;
	}

	public void setHospWorkInErxs(List<HospWorkInErx> hospWorkInErxs) {
		this.hospWorkInErxs = hospWorkInErxs;
	}

	public HospWorkInErx addHospWorkInErx(HospWorkInErx hospWorkInErx) {
		getHospWorkInErxs().add(hospWorkInErx);
		hospWorkInErx.setInErxCharge(this);

		return hospWorkInErx;
	}

	public HospWorkInErx removeHospWorkInErx(HospWorkInErx hospWorkInErx) {
		getHospWorkInErxs().remove(hospWorkInErx);
		hospWorkInErx.setInErxCharge(null);

		return hospWorkInErx;
	}*/

	public HospWorkInErx getHospWorkInErx() {
		return this.hospWorkInErx;
	}

	public void setHospWorkInErx(HospWorkInErx hospWorkInErx) {
		this.hospWorkInErx = hospWorkInErx;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	/*public List<InErxChargeDetail> getInErxChargeDetails() {
		return this.inErxChargeDetails;
	}

	public void setInErxChargeDetails(List<InErxChargeDetail> inErxChargeDetails) {
		this.inErxChargeDetails = inErxChargeDetails;
	}

	public InErxChargeDetail addInErxChargeDetail(InErxChargeDetail inErxChargeDetail) {
		getInErxChargeDetails().add(inErxChargeDetail);
		inErxChargeDetail.setInErxCharge(this);

		return inErxChargeDetail;
	}

	public InErxChargeDetail removeInErxChargeDetail(InErxChargeDetail inErxChargeDetail) {
		getInErxChargeDetails().remove(inErxChargeDetail);
		inErxChargeDetail.setInErxCharge(null);

		return inErxChargeDetail;
	}
*/
}